using System;
using System.DirectoryServices;
namespace Dimok.Data{

	////////////////////////////////////////////////////////////////////////////////////////////////////
	/// <summary>	Exception for signalling object does not exist errors. </summary>
	///
	/// <remarks>	Dimon, 12/21/2010. </remarks>
	////////////////////////////////////////////////////////////////////////////////////////////////////

	public class ObjectDoesNotExistException:Exception{
		public DirectoryEntry deObject;
		public ObjectDoesNotExistException(string objectName):base("Object "+objectName+" does not exists!"){}
	}

	////////////////////////////////////////////////////////////////////////////////////////////////////
	/// <summary>	Exception for signalling object exists errors. </summary>
	///
	/// <remarks>	Dimon, 12/21/2010. </remarks>
	////////////////////////////////////////////////////////////////////////////////////////////////////

	public class ObjectExistsException:Exception{
		public DirectoryEntry deObject;
		public ObjectExistsException(string objectName,DirectoryEntry deObject):base("Object "+objectName+" already exists!"){
			this.deObject = deObject;
		}
	}

	////////////////////////////////////////////////////////////////////////////////////////////////////
	/// <summary>	Exception for signalling user exists errors. </summary>
	///
	/// <remarks>	Dimon, 12/21/2010. </remarks>
	////////////////////////////////////////////////////////////////////////////////////////////////////

	public class UserExistsException:Exception{
		public UserExistsException(string userName):base("User "+userName+" already exists!"){}
	}
}
